package com.qcby.hengxiang.learn.service.Impl;

import com.qcby.hengxiang.learn.dao.TeacherMapper;
import com.qcby.hengxiang.learn.entity.Teacher;
import com.qcby.hengxiang.learn.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public Teacher getOne(Integer id) {
        Teacher teacher = teacherMapper.selectByPrimaryKey(id);
        return teacher;
    }
}
